package com.jhgsys.internal.peccancy.entity;


import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 违章条款类型 Entity
 *
 * @author admin
 * @date 2024-08-08 13:20:26
 */
@Data
@TableName("peccancy_clause")
public class PeccancyClause implements Serializable {

    private static final long serialVersionUID = 1679902277590738928L;
    /**
     * 
     */
    @TableId(value = "clause_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String clauseId;

    /**
     * 公司ID
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 条款名称
     */
    @TableField("clause_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String clauseName;

    /**
     * 适用范围 1：本工 2：外包工 3：外协员工 4：承包队 10：全部
     */
    @TableField("use_scope")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String useScope;

    /**
     * 状态
     */
    @TableField("status")
    @Size(max = 2, message = "{noMoreThan}")
    @NotBlank(message = "{required}")
    private String status;

    /**
     * 排序
     */
    @TableField("sort")
    @NotNull(message = "{required}")
    @Size(max = 4, message = "{noMoreThan}")
    private String sort;
    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     *删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}